<?php
/**
 * @file errormsg.php $
 * @author LinLin (linlin@haibao.com) $
 * @date 2015年8月20日 下午14:27:50 $
 * @brief app 错误日志 $
 */
namespace haibao\app\business;

use haibao\app\data\ErrorMsg as ErrorMsgData;

class ErrorMsg extends \haibao\app\business\Base {
	
	public static function getErrorMsg($query){
		$errorMsgData = new ErrorMsgData();
		return $errorMsgData->getAll($query);
	}
	
	public static function getErrorMsgById($id){
		$errorMsgData = new ErrorMsgData();
		return $errorMsgData->getOneById($id);
	}
}
